package com.atguigu.eduservice.mapper;

import com.atguigu.eduservice.entity.EduCourse;
import com.atguigu.eduservice.query.CourseQuery;
import com.atguigu.eduservice.vo.CoursePublishVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EduCourseMapper extends BaseMapper<EduCourse> {

    //根据id获取课程信息
    EduCourse getEduCourseById(String id);

    CoursePublishVo selectCoursePublishVoById(String id);

    List<EduCourse> pageQuery(@Param("page") long page, @Param("pageSize") long pageSize, @Param("courseQuery") CourseQuery courseQuery);
}
